﻿using System;
using LLS.BusinessLogic.Core;
using LLS.DataModel.Core;

namespace LLSWebApp
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL bll = new BLL();
            BOGeneric<DMOUser> bOUser = bll.RetrieveUser("USERNAME");

            //List<DMOUser> users = bOUser.LoadAll();

            //bOUser.DeleteAll();

            //List<DMOUser> users2 = bOUser.Load(new Filter<DMOUser>().EqualTo("Name", "Leonardo"));

            //DMOUser dMOUser = new DMOUser();
            //dMOUser.Id = 627;
            //dMOUser.Name = "dragon";

            //dMOUser.LastName = "xiong";
            //bOUser.Update(dMOUser);

            bOUser.Delete(new Filter<DMOUser>().EqualTo("Name", "dragon"));
        }
    }
}